package org.example.java.base;

import java.text.DecimalFormat;

/**
 * User: ZhangJuntao
 * Date: 13-12-15
 * Time: 下午2:49
 */
public class DecimalFormatTest {
  public static void main(String[] args) {
    System.out.println(new DecimalFormat("0000").format(10L));
    System.out.println(new DecimalFormat("0001").format(10));
    System.out.println(new DecimalFormat("XXXX").format(9));
  }
}
